#九九乘法表(for in 1)

print("="*80,end="")
print()
for j in range(1,10):
    for i in range(1,j+1):
        print("{}*{}={:<4}".format(i,j,i*j),end=" ")
    print("")
print("="*80,end="")
print()


#九九乘法表(for in 2)
print("="*80,end="")
print()
for j in range(9,0,-1):
    for i in range(1,j+1):
        print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")
print("="*80,end="")
print()



#九九乘法表(for in 3)
print("="*80,end="")
print()

for j in range(9,0,-1):
    for i in range(9,0,-1):
       if i>j:
           print("        ",end="")
       else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")
print("="*80,end="")
print()



#九九乘法表(for in 4)

print("="*80,end="")
print()
for j in range(1,10):
    for i in range(9,0,-1):
       if i>j:
           print("        ",end="")
       else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")

print("="*80,end="")
print()
